Post

Replies

Boosts

Views

Activity

Comment on WebKit: Where to Change WKBrowsingContextController to Fix Trimming of HTTP Body?
I simply need a way to inject a custom header into requests that are handled by a WKWebView. With NSSelectorFromString(@"registerSchemeForCustomProtocol:"), I can do that for all WebViews in my app, but it would be OK to have to set this interceptor for https scheme for each WebView separately. I really hate the idea of having to modify the HTML content of each WebView with some javascript only to replace the https scheme with some custom scheme (then, I can use the documented setURLSchemeHandler as @eskimo demonstrates in another thread).  Any hints?
Topic: Safari & Web SubTopic: General Tags:
Oct ’21
Comment on Xcode Build Timing summary not visible
Thanks @rafalkitta2! This weird behavior is still there in Xcode 16.0 (beta 3).
Replies
Boosts
Views
Activity
Jul ’24
Comment on Can I use Windows 10 to develop IOS apps?
Only note that the Apple Developer Program License Agreement: requires "not to install, use or run the Apple SDKs on any non-Apple-branded computer".
Replies
Boosts
Views
Activity
Dec ’22
Comment on WebKit: Where to Change WKBrowsingContextController to Fix Trimming of HTTP Body?
I simply need a way to inject a custom header into requests that are handled by a WKWebView. With NSSelectorFromString(@"registerSchemeForCustomProtocol:"), I can do that for all WebViews in my app, but it would be OK to have to set this interceptor for https scheme for each WebView separately. I really hate the idea of having to modify the HTML content of each WebView with some javascript only to replace the https scheme with some custom scheme (then, I can use the documented setURLSchemeHandler as @eskimo demonstrates in another thread).  Any hints?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21